package com.zb.entity.base;


import javax.persistence.*;

import com.zb.util.SelectItem;

import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "oms_code")
@IdClass(OmsCodeEntityKey.class)
public class OmsCodeEntity implements Serializable, SelectItem
{
	@Id
	@Column(name = "code_type")
	private String codeType;
	@Id
	@Column(name = "code")
	private String code;
	@Column(name = "description")
	private String description;
	@Column(name = "valid_flag")
	private Integer validFlag;
	@Column(name = "create_time")
	private Date createTime;
	@Column(name = "create_id")
	private String createId;
	@Column(name = "update_time")
	private Date updateTime;
	@Column(name = "update_id")
	private String updateId;

	public String getCodeType()
	{
		return codeType;
	}

	public void setCodeType(String codeType)
	{
		this.codeType = codeType;
	}

	@Override
	public String getCode()
	{
		return code;
	}

	public void setCode(String code)
	{
		this.code = code;
	}

	@Override
	public String getDescription()
	{
		return description;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public Integer getValidFlag()
	{
		return validFlag;
	}

	public void setValidFlag(Integer validFlag)
	{
		this.validFlag = validFlag;
	}

	public Date getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public String getCreateId()
	{
		return createId;
	}

	public void setCreateId(String createId)
	{
		this.createId = createId;
	}

	public Date getUpdateTime()
	{
		return updateTime;
	}

	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}

	public String getUpdateId()
	{
		return updateId;
	}

	public void setUpdateId(String updateId)
	{
		this.updateId = updateId;
	}
}